<!DOCTYPE html>
<html>
<head>
<title>{$site_name}</title>
<meta name="keywords" content="{$site_seo_keywords}" />
<meta name="description" content="{$site_seo_description}">

<tc_include file="Public:head" />
<style type="text/css">
.tab-content{overflow: visible;}

.uploaded_avatar_area{
	margin-top: 20px;
}
.uploaded_avatar_btns{
	margin-top: 20px;
}
.uploaded_avatar_area .uploaded_avatar_btns{display: none;}
</style>
</head>
<body class="body-white" id="top">
	<tc_include file="Public:nav" />

		<div class="container tc-main">
                <div class="row">
                    <div class="span3">
	                    <tc_include file="Public:usernav"/>
                    </div>
                    <div class="span9">
                           <div class="tabs">
                               <ul class="nav nav-tabs">
                                   <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list-alt"></i> 产品上传</a></li>
                               </ul>
                               <div class="tab-content">
                                   <div class="tab-pane active" id="one">
                                   		<form class="form-horizontal J_ajaxForm" action="{:u('product/addact')}" method="post" enctype="multipart/form-data">
                                   			<div class="control-group">
                                   				<label class="control-label" for="input-pname">产品名称</label>
                                   				<div class="controls">
                                   					<input type="text" id="input-pname" placeholder="产品名称" name="pname" value="{$pname}">
                                   				</div>
                                   			</div>
                                   			<div class="control-group">
                                   				<label class="control-label" for="input-price">价格</label>
                                   				<div class="controls">
                                   					<input type="text" id="input-price" placeholder="Price" name="price" value="{$price}">
                                   				</div>
                                   			</div>
                                   			<div class="control-group">
                                   				<label class="control-label" for="input-pimg">产品图片</label>
                                   				<div class="tab-content">
                                            <input type="file" id="input-pimg" name="img" style="margin-left:20px;"/>
                                          </div>
                                        </div> 
                                   			<div class="control-group">
                                   				<label class="control-label" for="input-comm">产品</label>
                                   				<div class="controls">
                                   					<textarea id="input-comm" placeholder="Products" name="comm">{$comm}</textarea>
                                   				</div>
                                   			</div>
                                   			<div class="control-group">
                                          <label class="control-label" for="input-status">是否推荐</label>
                                          <div class="controls">
                                            <input type="radio" checked="checked" name='status' value='0'>不推荐
                                            <input type='radio' name='status' value='1' >推荐
                                          </div>
                                        </div>
                                   			<div class="control-group">
                                   				<div class="controls">
                                   					<button type="submit" class="btn J_ajax_submit_btn">提交</button>
                                   				</div>
                                   			</div>
                                   		</form>
                                   </div>
                               </div>							
                           </div>
                    </div>
                </div>
  <include file="Public:memberfooter" />

	</div>
	<!-- /container -->

	<tc_include file="Public:scripts" />
</body>
</html>
